package com.netrust.quarz.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * 实时告警信息表
 * @author Administrator
 *
 */
@Entity
@Table(name="t_real_alarm")
public class RealAlarm {
	
	@Id
	@Column(name = "id", unique = true, nullable = false)
	private String id;//
	@Column(name="sa_alarm_type_id")
	private String alarmTypeId;//告警类别
	@Column(name="sa_name")
	private String name;//告警名称
	@Column(name="sa_severity")
	private String severity;//告警级别
	@Column(name="sa_first_create_at")
	private Date firstCreate;//首次发生时间
	@Column(name="sa_cause")
	private String cause;//告警原因
	@Column(name="sa_alarm_id")
	private String alarmId;//告警流水号
	@Column(name="sa_clear_time")
	private Date clearTime;//清除时间
	@Column(name="sa_user_of_clear")
	private String clearUser;//清除人
	@Column(name="sa_location_info")
	private String locationInfo;//定位信息
	@Column(name="sa_ip_addr")
	private String ipAddr;//定位信息
	@Column(name="sa_additional")
	private String additional;//额外信息
	@Column(name="sa_active_status")
	private String activeStatus;//告警有效状态
	@Column(name="sa_ack_status")
	private String ackStatus;//告警确认状态
	@Column(name="sa_clear_status")
	private String clearStatus;//告警清除状态
	@Column(name="sa_orig_alarm_id")
	private String origAlarmId;//告警对象名称
	@Column(name="sa_mo_id")
	private String moId;//告警对象标识
	@Column(name="sa_mo_type")
	private String moType;//告警对象类型
	@Column(name="sa_dept")
	private String dept;//所属部门
	@Column(name="sa_carrier")
	private String carrier;//所属运营商
	@Column(name="sa_server_name")
	private String serverName;
	@Column(name="sa_update_at")
	private Date updateAt;

	
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getAlarmTypeId() {
		return alarmTypeId;
	}
	public void setAlarmTypeId(String alarmTypeId) {
		this.alarmTypeId = alarmTypeId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSeverity() {
		return severity;
	}
	public void setSeverity(String severity) {
		this.severity = severity;
	}
	
	public Date getFirstCreate() {
		return firstCreate;
	}
	
	public void setFirstCreate(Date firstCreate) {
		this.firstCreate = firstCreate;
	}
	
	public String getCause() {
		return cause;
	}

	public void setCause(String cause) {
		this.cause = cause;
	}

	public String getAlarmId() {
		return alarmId;
	}

	public void setAlarmId(String alarmId) {
		this.alarmId = alarmId;
	}
	
	public Date getClearTime() {
		return clearTime;
	}

	public void setClearTime(Date clearTime) {
		this.clearTime = clearTime;
	}
	
	public String getClearUser() {
		return clearUser;
	}

	public void setClearUser(String clearUser) {
		this.clearUser = clearUser;
	}
	
	public String getLocationInfo() {
		return locationInfo;
	}

	public void setLocationInfo(String locationInfo) {
		this.locationInfo = locationInfo;
	}
	
	public String getAdditional() {
		return additional;
	}

	public void setAdditional(String additional) {
		this.additional = additional;
	}
	
	public String getActiveStatus() {
		return activeStatus;
	}

	public void setActiveStatus(String activeStatus) {
		this.activeStatus = activeStatus;
	}
	
	public String getAckStatus() {
		return ackStatus;
	}

	public void setAckStatus(String ackStatus) {
		this.ackStatus = ackStatus;
	}

	public String getClearStatus() {
		return clearStatus;
	}

	public void setClearStatus(String clearStatus) {
		this.clearStatus = clearStatus;
	}
	
	
	public String getOrigAlarmId() {
		return origAlarmId;
	}

	public void setOrigAlarmId(String origAlarmId) {
		this.origAlarmId = origAlarmId;
	}
	
	public String getMoId() {
		return moId;
	}

	public void setMoId(String moId) {
		this.moId = moId;
	}
	
	public String getMoType() {
		return moType;
	}

	public void setMoType(String moType) {
		this.moType = moType;
	}
	
	public String getDept() {
		return dept;
	}

	public void setDept(String dept) {
		this.dept = dept;
	}
	
	public String getCarrier() {
		return carrier;
	}

	public void setCarrier(String carrier) {
		this.carrier = carrier;
	}
	
	public String getServerName() {
		return serverName;
	}

	public void setServerName(String serverName) {
		this.serverName = serverName;
	}
	
	public String getIpAddr() {
		return ipAddr;
	}

	public void setIpAddr(String ipAddr) {
		this.ipAddr = ipAddr;
	}
	public Date getUpdateAt() {
		return updateAt;
	}

	public void setUpdateAt(Date updateAt) {
		this.updateAt = updateAt;
	}

	@Override
	public String toString() {
		return "WarningInfo [id=" + id + ", alarmTypeId=" + alarmTypeId + ", name=" + name + ", severity=" + severity
				+ ", firstCreate=" + firstCreate + ", cause=" + cause + ", alarmId=" + alarmId + ", clearTime="
				+ clearTime + ", clearUser=" + clearUser + ", locationInfo=" + locationInfo + ", additional="
				+ additional + ", activeStatus=" + activeStatus + ", clearStatus=" + clearStatus  + ", origAlarmId=" + origAlarmId + ", moId=" + moId + ", moType=" + moType + ", dept="
				+ dept + ", carrier=" + carrier + ", serverName=" + serverName + "]";
	}


}
